<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/dialog.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/upload.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
<script type="text/javascript" src="/resource/js/dialog.js"></script>
<script type="text/javascript" src="/resource/js/admin/articlecheckedit.js"></script>
<script type="text/javascript" src="/resource/js/admin/articlecheckdetail.js"></script>
<script type="text/javascript" src="/resource/ueditor/config.js"></script>
<script type="text/javascript" src="/resource/ueditor/ueditor.js"></script>
<script type="text/javascript" src="/resource/datepicker/wdatepicker.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>文档管理 > <a href="./">待我审核的文档</a> > 审核处理</div>
	<form name="form_articlecheck" method="post" action="checkdo?canedit=1" onsubmit="return checkform()">
    	<div class="rightbody mcho">
			<div class="rightbodycontent">
				<table cellspacing="1" cellpadding="4" class="tableedit">
					<tr>
						<td>标题：</td>
						<td>
							<input type="text" name="title" id="title" value="${article.title!}" style="width:500px;" />
							<label><input type="checkbox" name="bold"<#if article.bold> checked</#if> />加粗</label>
							<label><input type="checkbox" name="red"<#if article.red> checked</#if> />加红</label>
						</td>
					</tr>
					<tr>
						<td>摘要：</td>
						<td>
							<textarea name="digest" class="articledigest">${article.digest!}</textarea> 限100字
						</td>
					</tr>
					<tr>
						<td>外部链接：</td>
						<td>
							<input type="text" name="exturl" value="${article.exturl!}" style="width:600px" />
						</td>
					</tr>
					<tr>
						<td>正文内容：</td>
						<td>
							<textarea name="contents" id="contents" class="ueditor">${article.contents!}</textarea>
						</td>
					</tr>
					<tr>
						<td>封面图片：</td>
						<td>
			                <input type="text" name="image" id="image" value="${article.image!}" style="width:300px;" />
                            <a class="linkbtn upload">本地上传</a>
                            <input type="file" id="imagefile" name="srcfile" class="uploadfile" onchange="upload()" accept="image/*" />
                            <img id="image_pre" height="25" src="${article.image!}" class="uploaditem" style="display:${(!article.image??)?string('none','inline')}" />
                            <span id="uploading" class="uploaditem" style="display:none;">正在上传中...</span>
						</td>
					</tr>
					<tr>
						<td>来源：</td>
						<td>
							<input type="text" name="source" id="source" value="${article.source!}" />
						</td>
					</tr>
					<tr>
						<td>作者：</td>
						<td>
							<input type="text" name="author" id="author" value="${article.author!}" />
						</td>
					</tr>
					<tr>
                        <td>发布时间：</td>
                        <td>
                        	<input type="text" name="publishtime" id="publishtime" value="${article.publishtime?string('yyyy-MM-dd HH:mm:ss')}" onclick="datepicker('yyyy-MM-dd HH:mm:ss')" />
                        </td>
                    </tr>
                    <tr>
                        <td>点击数：</td>
                        <td>
                        	<input type="text" name="clicknum" id="clicknum" value="${article.clicknum}" />
                        </td>
                    </tr>
                    <tr>
                        <td>排序：</td>
                        <td>
                        	<input type="text" name="sort" id="sort" value="${article.sort}" />
                        </td>
                    </tr>
                    <tr>
                        <td>发布栏目：</td>
                        <td>
                            <#assign colfirst=true>
                            <#list columnses as columns>
                                <#if !colfirst && columns.parentId == 0><br/></#if>
                                <#if columns.parentId == 0><b></#if>
                                <label<#if columns.columnsType.id != 1> onclick="alert('非文档列表类型栏目不可选择')"</#if>><input type="checkbox"<#if columns.columnsType.id == 1> name="columnsids" value="${columns.id}"</#if><#if columnsIds?seq_contains(columns.id)> checked</#if><#if columns.columnsType.id != 1> disabled</#if> />${columns.name}</label>
                                <#if columns.parentId == 0></b></#if>
                                <#assign colfirst=false>
                            </#list>
                            <#if zhuantis?size gt 0>
                                <#list zhuantis as zhuanti>
                                    <br />&nbsp;<b>${zhuanti.name}：</b>
                                    <#list columnsForZhuanties as columns>
                                    	<#if columns.zhuanti.id == zhuanti.id>
                                        	<label><input type="checkbox" name="columnsids" value="${columns.id}"<#if columnsIds?seq_contains(columns.id)> checked</#if> />${columns.name}</label>
                                        </#if>
                                    </#list>
                                </#list>
                            </#if>
                        </td>
					</tr>
                    <tr>
                        <td>密码保护：</td>
                        <td>
                        	<input type="checkbox" name="protection" id="protection" value="true" onclick="switchprotectionpassword()"<#if article.protection> checked</#if> />
                        	<span id="protectionpasswordspan" style="display:${article.protection?string("inline","none")}">密码：<input type="text" name="protectionpassword" id="protectionpassword" value="${article.protectionpassword!}" /></span>
                        </td>
                    </tr>
				</table>
				<input type="hidden" name="articleid" value="${article.id}" />
				<input type="hidden" name="checktype" id="checktype" value="1" />
				<input type="hidden" name="callbackparams" value="${callbackparams!}">
			</div>
		</div>
		<div class="checkopinion">
			<div class="content">
				签署意见：
			    <input type="text" name="opinion" id="opinion" style="width:300px" />
			    <select onchange="commonopinion(this)">
			        <option>--常用意见--</option>
			        <#list checkOpinions as opinion>
			        	<option value="${opinion}">${opinion}</option>
			        </#list>
			    </select>
			    <span style="color:red">*</span>
		    </div>
		</div>
        <div class="rightfoot">
        	<div class="rightfootcontent">
	            <input type="button" value="返 回" class="return" onclick="history.back()" />&nbsp;
	            <input type="button" value="通 过" class="checkpass" onclick="checkpass()" />&nbsp;
	            <input type="button" value="驳 回" class="checkturndown" onclick="checkturndown()" />
            </div>
        </div>
    </form>
    <div id="dialog_imagecrop" class="dialog"></div>
</body>
</html>